import Router from 'vue-router'
import Vue from '../vue'
import App from '../component/app/app.vue'
import flashList from '../component/gao/flash-ad-list/flash-ad-list.vue'
import flashNew from '../component/gao/flash-ad-new/flash-ad-new.vue'
import flashDetail from '../component/gao/flash-ad-detail/flash-ad-detail.vue'

Vue.use(Router)

var app = Vue.extend(App)
var router = new Router()

router.map({
  '/': {
    component: flashList
  },
  '/new': {
    component: flashNew
  },
  '/:id': {
    component: flashDetail
  }
})

router.start(app, 'app')
